package com.ytzl.itrip.trade.service;

import com.ytzl.itrip.beans.model.ItripHotelOrder;

import java.util.List;
import java.util.Map;

import com.ytzl.itrip.utils.common.Page;


public interface ItripHotelOrderService {

    public ItripHotelOrder getItripHotelOrderById(Long id) throws Exception;

    public List<ItripHotelOrder> getItripHotelOrderListByMap(Map<String, Object> param) throws Exception;

    public Integer getItripHotelOrderCountByMap(Map<String, Object> param) throws Exception;

    public Integer saveItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception;

    public Integer modifyItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception;

    public Integer removeItripHotelOrderById(Long id) throws Exception;

    public Page<ItripHotelOrder> queryItripHotelOrderPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    /**
     * 更新订单状态
     */
    void updateItripHotelOrderPaySuccess(String out_trade_no, String tradeNo) throws Exception;

    Boolean processed(String orderNo) throws Exception;

    ItripHotelOrder loadItripHotelOrderByOrderNo(String orderNo) throws Exception;


    void updateItripHotelOrderPayFail(String out_trade_no, String trade_no) throws Exception;
}
